package com.wondertek.mam.tag.web.rest.vm;

import javax.validation.Valid;
import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.time.LocalDate;

/**
 * Created by wangdongxu on 2017-09-22 下午 14:03:45.
 */
public class ReqPutTag {

    @NotNull
    @Size(min = 1)
    private String tag;

    @NotNull
    @DecimalMin("1")
    @DecimalMax("5")
    private Integer score;
    private Integer groupId;
    @NotNull
    private LocalDate protectedTime;

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }
    public Integer getScore() {
        return score;
    }
    public void setScore(Integer score) {
        this.score = score;
    }

    public LocalDate getProtectedTime() {
        return protectedTime;
    }

    public void setProtectedTime(LocalDate protectedTime) {
        this.protectedTime = protectedTime;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

}
